package in.hitmedia.test.bitswise;

public class Swap5Dot5 
{
	
	private static int countBits(int a, int b)
	{
		int count=-1;
		
		Integer c= a ^ b;
		System.out.println("c = "+Integer.toBinaryString(c));
		count = Integer.bitCount(c);
		
		return count;
	}
	
	public static void main(String args[])
	{
		System.out.println("45 78: "+countBits(3, 4));
		
	}
	
}
